/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rhdtp.demopf.control;

import com.rhdtp.demopf.util.ResultTypeUtil;
import javax.faces.context.FacesContext;

/**
 *
 * @author rhdtp
 */
public class Logout {

    /**
     * Creates a new instance of Logout
     */
    public Logout() {
    }

    public String logout() {
        FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
        return ResultTypeUtil.LOGIN;
    }
}
